import {ADD_TODO_ITEM, CHANGE_INPUT_VALUE, DELETE_TODO_ITEM, INIT_LIST_ITEM, GET_INIT_LIST} from "./actionTypes";

export const getInputChangeAction = (value) => ({
    type: CHANGE_INPUT_VALUE,
    value: value
});

export const getAddItemAction = () => ({
    type: ADD_TODO_ITEM,
});

export const getItemDeleteAction = (index) => ({
    type: DELETE_TODO_ITEM,
    index: index
});

export const getInitialListAction = (data) => ({
    type: INIT_LIST_ITEM,
    data: data
});

export const getInitList = () => ({
   type: GET_INIT_LIST,
});